﻿using System;
using System.Collections.Generic;
using System.Data;
using nkstdgia.common.ThamDinhGia.BusinessObjects;
using nkstdgia.common.ThamDinhGia.DataAccess;

namespace nkstdgia.common.ThamDinhGia.BusinessLogic
{
    public class CONG_TRINH_XAY_DUNGBL
    {
        #region ***** Init Methods *****

        CONG_TRINH_XAY_DUNGDA objCONG_TRINH_XAY_DUNGDA;

        public CONG_TRINH_XAY_DUNGBL()
        {
            objCONG_TRINH_XAY_DUNGDA = new CONG_TRINH_XAY_DUNGDA();
        }

        #endregion ***** Init Methods *****

        #region ***** Get Methods *****

        /// <summary>
        /// Get CONG_TRINH_XAY_DUNG by ma_ho_so
        /// </summary>
        /// <param name="ma_ho_so">MA_HO_SO</param>
        /// <returns>CONG_TRINH_XAY_DUNG</returns>
        public CONG_TRINH_XAY_DUNG GetByMA_HO_SO(Int64 ma_ho_so)
        {
            return objCONG_TRINH_XAY_DUNGDA.GetByMA_HO_SO(ma_ho_so);
        }

        /// <summary>
        /// Get all of CONG_TRINH_XAY_DUNG
        /// </summary>
        /// <returns>List<<CONG_TRINH_XAY_DUNG>></returns>
        public List<CONG_TRINH_XAY_DUNG> GetList()
        {
            return objCONG_TRINH_XAY_DUNGDA.GetList();
        }

        /// <summary>
        /// Get DataSet of CONG_TRINH_XAY_DUNG
        /// </summary>
        /// <returns>DataSet</returns>
        public DataSet GetDataSet()
        {
            return objCONG_TRINH_XAY_DUNGDA.GetDataSet();
        }

        /// <summary>
        /// Get all of CONG_TRINH_XAY_DUNG paged
        /// </summary>
        /// <param name="recperpage">recperpage</param>
        /// <param name="pageindex">pageindex</param>
        /// <returns>List<<CONG_TRINH_XAY_DUNG>></returns>
        public List<CONG_TRINH_XAY_DUNG> GetListPaged(int recperpage, int pageindex)
        {
            return objCONG_TRINH_XAY_DUNGDA.GetListPaged(recperpage, pageindex);
        }

        /// <summary>
        /// Get DataSet of CONG_TRINH_XAY_DUNG paged
        /// </summary>
        /// <param name="recperpage">recperpage</param>
        /// <param name="pageindex">pageindex</param>
        /// <returns>DataSet</returns>
        public DataSet GetDataSetPaged(int recperpage, int pageindex)
        {
            return objCONG_TRINH_XAY_DUNGDA.GetDataSetPaged(recperpage, pageindex);
        }

        #endregion ***** Get Methods *****

        #region ***** Add Update Delete Methods *****

        /// <summary>
        /// Add a new CONG_TRINH_XAY_DUNG within CONG_TRINH_XAY_DUNG database table
        /// </summary>
        /// <param name="obj_cong_trinh_xay_dung">CONG_TRINH_XAY_DUNG</param>
        /// <returns>key of table</returns>
        public long Add(CONG_TRINH_XAY_DUNG obj_cong_trinh_xay_dung)
        {
            return objCONG_TRINH_XAY_DUNGDA.Add(obj_cong_trinh_xay_dung);
        }

        /// <summary>
        /// updates the specified CONG_TRINH_XAY_DUNG
        /// </summary>
        /// <param name="obj_cong_trinh_xay_dung">CONG_TRINH_XAY_DUNG</param>
        /// <returns></returns>
        public void Update(CONG_TRINH_XAY_DUNG obj_cong_trinh_xay_dung)
        {
            objCONG_TRINH_XAY_DUNGDA.Update(obj_cong_trinh_xay_dung);
        }

        /// <summary>
        /// Delete the specified CONG_TRINH_XAY_DUNG
        /// </summary>
        /// <param name="ma_ho_so">MA_HO_SO</param>
        /// <returns></returns>
        public void Delete(Int64 ma_ho_so)
        {
            objCONG_TRINH_XAY_DUNGDA.Delete(ma_ho_so);
        }

        #endregion ***** Add Update Delete Methods *****
    }
}